Run kill-emacs-hook in batch mode, and on SIGINT in batch mode.
authorGlenn Morris <rgm@gnu.org>
Sat, 2 Oct 2010 02:30:11 +0000 (19:30 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 2 Oct 2010 02:30:11 +0000 (19:30 -0700)
commit1e5ffe30b3f7682ee8467e7694b5f63371e31cf9
tree1b4c844a172cedc21d155b0fe9bc89e2729884c8
parentd157cce93d4e528bb594b975c82eb18db9de9b05
Run kill-emacs-hook in batch mode, and on SIGINT in batch mode.
See thread http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00795.html

* src/emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
(main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
in batch-mode.
(Fkill_emacs): Doc fix.  Also run the hook in batch mode.
(kill-emacs-hook): Doc fix.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use kill-emacs-hook to
delete tempfile if interrupted during compilation.

* doc/lispref/os.texi (Killing Emacs): Hook now runs in batch mode.

* etc/NEWS: Mention these changes.
doc/lispref/ChangeLog
doc/lispref/os.texi
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el
src/ChangeLog
src/emacs.c